package com.xxp.service;

import com.xxp.controller.DTO.LoginDto;
import com.xxp.controller.request.AdminPageRequest;
import com.xxp.controller.request.LoginRequest;
import com.xxp.controller.request.PassRequest;
import com.xxp.controller.request.UserPageRequest;
import com.xxp.entity.Admin;
import com.xxp.entity.User;

import java.util.List;

public interface AdminService {
    List<Admin> list();

    Object page(AdminPageRequest AdminPageRequest);

    void save(Admin admin);

    Admin getById(Integer id);

    void update(Admin admin);

    void deleteById(Integer id);

    LoginDto login(LoginRequest loginRequest);

    void changePass(PassRequest passRequest);

    void changePassById(PassRequest passRequest);
}
